package com.ibeeking.found.msg.service.common.vo;

import com.ibeeking.nematos.utils.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ToString
public class WxMpGroupUserMessageVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private Integer readed;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String appId;
    private Integer messageType;
    private String content;
    private String nickName;
    private LocalDateTime createTime;

    public String getCreateTime() {
        return DateUtil.parseStr(this.createTime, DateUtil.YYYY_MM_DD_HH_MM_SS);
    }


}
